﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using BadmintonApp.Entity;

namespace BadmintonApp.BLL.Interface
{
    public interface IUsersBLL
    {
        /// <summary>
        /// 插入用户信息
        /// </summary>
        /// <param name="userInfo">用户信息类</param>
        bool InsertUser(TUsersInfo userInfo);

        /// <summary>
        /// 更新用户信息
        /// </summary>
        /// <param name="userInfo">用户信息类</param>
        bool UpdateUser(TUsersInfo userInfo);

        /// <summary>
        /// 删除用户信息
        /// </summary>
        /// <param name="userID"></param>
        /// <returns></returns>
        bool DeleteUser(int userID);

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        DataSet GetAllUsers();

        /// <summary>
        /// 根据用户名获取用户信息
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <returns>用户信息类</returns>
        TUsersInfo GerUserInfo(string userName);

        /// <summary>
        /// 根据用户名和密码获取用户信息
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <param name="password">密码</param>
        /// <returns>用户信息类</returns>
        TUsersInfo GetUserInfoByNameAndPassword(string userName, string password);
    }
}
